<?php
/**
 * Created by XM·Tan.
 * Motto: Who shuts love out, in turn shall be shut out from love.
 * Date: 2021/4/24 21:50
 */

namespace app\common\model\mysql;


class SiteLog extends BaseModel {

    protected $dateFormat = 'Y-m-d H:i:s';

    /**
     * title 查询提条件表达式
     * @param $query
     * @param $value
     */
    public function searchUsernameAttr($query, $value) {
        $query->where('username', 'like', '%' . $value . '%');
    }

}